package com.tchintech.pay.delegate.certification;

import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/7/7 0007.
 */

public class ShoperInfoDelegate extends AppDelegate {
    @Bind(R.id.shoperInfo_tv_tips)
    TextView shoperInfoTvTips;
    @Bind(R.id.shoperInfo_ed_shopName)
    EditText shoperInfoEdShopName;
    @Bind(R.id.shoperInfo_ed_shopAddress)
    EditText shoperInfoEdShopAddress;
    @Bind(R.id.shoperInfo_ed_shopType)
    EditText shoperInfoEdShopType;
    @Bind(R.id.shoperInfo_bt_confirm)
    Button shoperInfoBtConfirm;
    @Bind(R.id.shoperInfo_bt_cancel)
    Button shoperInfoBtCancel;
    @Override
    public int getRootLayoutId() {
        return R.layout.activity_shoper;
    }

    public  String getTexts(int id){
        String str;
        EditText et=get(id);
        str=et.getText().toString().trim();
        return str;
    }

    public void setTexts(String str){
        shoperInfoTvTips.setText(str);
    }

}
